<?php

if(stristr($_SERVER['PHP_SELF'],".inc.php")) { 
	header("Location:index.php"); 
	exit; 
}

if($_GET['op'] == "u") {
	$id = intval($_GET['id']);
	$public = "1";
	toggle_view_post($id,$public); 
	unset($goto); 
	$goto = $self."?m=u&id=".$id; 
	header("Location: ".$goto);
	exit; 

}

/* ########################## hide action ########################## */
if($_GET['op'] == "h") {
	$id = intval($_GET['id']);
	$public = "0";
	toggle_view_post($id,$public); 
	unset($goto); 
	$goto = $self."?m=h&id=".$id; 
	header("Location: ".$goto);
	exit; 
}
?>